package com.ifacebox.web.admin.master.model;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author znn
 */
public class MasterQuartz {
    private Integer id;
    private String jobKey;
    @NotBlank(message = "任务名称不能为空！")
    @Size(min = 2, max = 255, message = "任务名称长度应在2-255之间！")
    private String jobName;
    private String jobStatus;
    private String jobExplain;
    @NotBlank(message = "任务类名不能为空！")
    @Size(min = 2, max = 255, message = "任务类名长度应在2-255之间！")
    private String className;
    @NotBlank(message = "任务表达式不能为空！")
    @Size(min = 2, max = 255, message = "任务表达式长度应在2-255之间！")
    private String cronExpression;
    private String createUser;
    private String updateUser;
    private String createTime;
    private String updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJobKey() {
        return jobKey;
    }

    public void setJobKey(String jobKey) {
        this.jobKey = jobKey;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getJobExplain() {
        return jobExplain;
    }

    public void setJobExplain(String jobExplain) {
        this.jobExplain = jobExplain;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("编码=").append(id);
        sb.append(",任务名称=").append(jobName);
        sb.append(",任务说明=").append(jobExplain);
        sb.append(",任务状态=").append(jobStatus);
        sb.append(",任务类名=").append(className);
        sb.append(",任务表达式=").append(cronExpression);
        sb.append(",创建用户=").append(createUser);
        sb.append(",修改用户=").append(updateUser);
        sb.append(",创建时间=").append(createTime);
        sb.append(",修改时间=").append(updateTime);
        return sb.toString();
    }
}
